import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 订单结算凭证表
 */
@Entity('biz_order_proof_list', { comment: '订单结算凭证表' })
export class BizOrderProofListEntity extends BaseEntity {
  @Column({ comment: '订单id' })
  orderId: number;

  @Column({ comment: '师傅id' })
  workerId: number;

  @Column({
    comment: '师傅自己的工期施工总价',
    type: 'decimal',
    precision: 18,
    scale: 2,
    default: null,
  })
  priceSelfWorkAll: number;

  @Column({ comment: '凭证照片', length: 200, default: '' })
  photo: string;

  @Column({ comment: '备注', default: '' })
  notes: string;
}
